package com.tzjw.marketweixin.exception.errorcode;

/**
 * CommonErrorCode 公用异常编码
 *
 * @author hayden
 * @version 2023/09/17 09:06
 **/
public enum CommonErrorCode implements ErrorCode {
    SUCCESS(0, "成功"),
    CUSTOM(998,"自定义异常"),
    UNKNOW(999,"未知错误"),


    E_40101(401,"输入参数不匹配"),
    E_50401(504,"更新数据已失效"),




    /**
     * 验证码错误
     */
    E_100102(100102,"验证码错误"),
    /**
     * 验证码为空
     */
    E_100103(100103,"验证码为空"),
    /**
     * 查询结果为空
     */
    E_100104(100104,"查询结果为空"),
    /**
     * ID格式不正确或超出Long存储范围
     */
    E_100105(100105,"ID格式不正确或超出Long存储范围"),
    E_100106(100106,"请求失败");

    private int code;
    private String desc;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    CommonErrorCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}